package com.yunsc.order.sevice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunsc.common.utils.PageResult;
import com.yunsc.order.dto.RechargePlanDTO;
import com.yunsc.order.entity.YunscRechargePlanEntity;

/**
 * 会员充值套餐表
 *
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:51
 */
public interface YunscRechargePlanService extends IService<YunscRechargePlanEntity> {

    /**
     * 分页查询会员充值套餐列表
     *
     * @param param
     * @param storeId
     * @return
     */
    PageResult<YunscRechargePlanEntity> queryRechargePlanList(RechargePlanDTO param, Integer storeId);

    /**
     * 新增会员充值套餐
     *
     * @param plan 套餐
     * @param storeId 商户ID
     */
    void addRechargePlan(YunscRechargePlanEntity plan, Integer storeId);

    /**
     * 编辑会员充值套餐
     *
     * @param param 套餐
     */
    void editRechargePlan(RechargePlanDTO param);

    /**
     * 删除会员充值套餐
     *
     * @param planId 套餐ID
     */
    void deleteRechargePlan(Integer planId);
}

